package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 文件
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_system_file")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FileModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //文件ID
    private String url; //文件存放路径
    private String name; //文件名称
    private Integer fileType; //文件类型 1图片 2视频
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
